package com.sudoku.ui.content;

import javax.swing.JLabel;
import javax.swing.JPanel;

import com.sudoku.ui.Sudoku;

public class SStatus extends JPanel {
	private static final long serialVersionUID = -8541496084024119864L;
	private JLabel status;
	private SPanel sPanel;
	
	public SStatus(SPanel sPanel) {
		this.sPanel = sPanel;
		this.status = new JLabel("Already Filled: " + sPanel.getFilledCellCnt() + "/" + sPanel.getTotalBlankCnt());
		
		this.add(status);
		setVisible(true);
	}
	
	public void update() {
		this.status.setText("Already Filled: " + sPanel.getFilledCellCnt() + "/" + sPanel.getTotalBlankCnt());
	}
}
